//package com.qf.carlikeboot.controller;
//
//import io.swagger.annotations.*;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RestController;

// * 返回JSON数据，验证下Swagger框架
//@RestController
//@Api("测试Swagger框架")
//public class HelloController {
//
//    @ApiOperation("用户名的欢迎信息")
//    @ApiResponses({
//            @ApiResponse(code = 0, message = "请求成功"),
//            @ApiResponse(code = -1, message = "请求失败")
//    })
//    @ApiImplicitParam(name = "name", value = "用户名")
//    @GetMapping(value = "/hello", produces = "text/html;charset=UTF-8")
//    public String hello(String name) {
//        return "Hello " + name;
//    }
//
//    @ApiOperation("首页地址")
//    @GetMapping("/index")
//    public String index() {
//        return "Hello Swagger!";
//    }
//}
